<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .container{
            width: 100%;
            height: 50px;
            background: #3881c3;
        }
        .container > ul{
            width: 1180px;
            height: 50px;
            margin: 0 auto;
            list-style: none;

            display: flex;
            justify-content: space-around;
        }

        .container > ul > li{
            width: 140px;
            /* flex: 1; */
            text-align: center;
            height: 50px;
            line-height: 50px;
        }
        .container > ul > li a{
            color: white;
            text-decoration: none;
        }
        .container > ul > li:hover{
            background: #63aef0;
        }
    </style>
</head>
<body>
    <nav class="container">
        <ul>
            <li><a href="">前端开发</a></li>
            <li><a href="">前端开发</a></li>
            <li><a href="">前端开发</a></li>
            <li><a href="">前端开发</a></li>
            <li><a href="">前端开发</a></li>
            <li><a href="">前端开发</a></li>
        </ul>
    </nav>
</body>
</html>